<?php
session_start();
session_unset($_SESSION["sessid"]);
session_destroy();

 echo "<script language='javascript'>
   			window.location ='".$_SERVER['HTTP_REFERER']."';
   		 </script>";  

?>

